home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / e / misc.save / 000134_bonomi@host122.r-bonomi.com_Fri Dec 14 12:39:43 2007.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Path: reader1.panix.com!panix!newsfeed.stanford.edu!sn-xt-sjc-02!sn-xt-sjc-09!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail
  2. From: bonomi@host122.r-bonomi.com (Robert Bonomi)
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Screen Capture
  5. Date: Thu, 13 Dec 2007 23:25:04 -0000
  6. Organization: Widgets, Inc.
  7. Message-ID: <13m3fqgakmrkc05@corp.supernews.com>
  8. References: <h654j.66697$RX.26340@newssvr11.news.prodigy.net> <13l6v29jqcmhl2e@corp.supernews.com> <g3J7j.77732$YL5.57974@newssvr29.news.prodigy.net>
  9. X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
  10. Originator: bonomi@host122.r-bonomi.com (Robert Bonomi)
  11. X-Complaints-To: abuse@supernews.com
  12. Lines: 62
  13. Xref: panix comp.protocols.kermit.misc:15716
  14.  
  15. In article <g3J7j.77732$YL5.57974@newssvr29.news.prodigy.net>,
  16. 2damn  <2damn@nospam.com> wrote:
  17. >On Mon, 03 Dec 2007 03:47:21 +0000, Robert Bonomi wrote:
  18. >
  19. >> In article <h654j.66697$RX.26340@newssvr11.news.prodigy.net>, 2damn 
  20. >> <2damn@nospam.com> wrote:
  21. >> Kermit has the 'log' command that will provide various kinds of gory
  22. >> detail to a file.  'log session' before a 'connect' command, and you wil
  23. >>  capture all the interactive stuff you do, and which you can use to
  24. >> built a script from.
  25. >> 
  26. >> 
  27. >> This approach fails if the remote system thinks its talking to something
  28. >> where it can play cursor-positioning and selective over-write games.
  29. >> 
  30. >> If you can tell the remote computer that you're using some kind of a
  31. >> 'dumb' hard-copy terminal this issue is moot.
  32. >> 
  33. >> Else, screen-scraping gets *VERY* complex.
  34. >
  35. >I tried "log" and it does contain communication data that is not useful 
  36. >for me. And some bits are total garbage so there may be some of what you 
  37. >mention in your second paragraph going on. 
  38. >
  39. >I have found that "cat /dev/vcsX" can copy ttyX, but of course not my 
  40. >ttySX. I can format the capture with newlines (dd) and trim what I want 
  41. >(sed). Attempting to get it to work on the serial lines. 
  42.  
  43.  
  44. OK, bluntly, given your descriptions, _you_ cannot get C-Kermit to do that
  45. which you want to happen.
  46.  
  47. Building application-specific 'screen-scraping' logic in Kermit macro-language
  48. *is* possible, but *very* _painful_, and works only for the exact screen
  49. form for which it was coded.  If _anything_ changes regarding how the remote
  50. machine generates the screen, the  macro programming requires major reworking.
  51.  
  52. Developing such macros requires an *intimate*knowledge* of what the remote
  53. machine is doing, and what kind of device it 'thinks' it is talking to, *AND*
  54. the gory details of the formatting/addressing protocol(s) being used.  And if 
  55. the remote machine's concept of the terminal device can be changed or not.  
  56. Also, if it can be changed, what are _all_ the possible alternatives.
  57.  
  58. As you apparently lack this essential information about the environment you
  59. are trying to work in, and don't have the experience to simply 'recognize on 
  60. sight' the protocol data in what you have described as the 'total garbage',
  61. you do not have the required skill-set to build the solution you need.
  62. (This _is_ "specialist" knowledge/skills -- unless you routinely do work
  63. involving 'faking a terminal', it's not surprising that you don't know these
  64. things -- they're *not* part of the 'general skills'. )
  65.  
  66. Your best bet is to hire a knowledgeable professional -- one _with_ expertise
  67. in 'serial port communications' -- for (A) a consultation on 'what is 
  68. going on' in your specific situation, (B) 'what is practical' as regards
  69. EXACTLY what you are trying to accomplish, and then, possibly (C) development 
  70. of custom software -- probably not based on Kermit -- to solve your problem.
  71.  
  72.  
  73. Feel free to e-mail me directly with further questions.  Please start the 
  74. subject line with 'KERMIT', so I'll see it.
  75.  
  76.